export const init = state => state.init = false
export const hasAuth = state => state.hasAuth
export const userInfo = state => {
    if (!state.userInfo.displayName) {
        if (sessionStorage.getItem('userInfo')) {
            state.userInfo = JSON.parse(sessionStorage.getItem('userInfo') || null)
        }
    }
    return state.userInfo
}

export const readonly = state => {
    return state.readonly
}
export const isMobile = state => {
    return state.isMobile
}